# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1CpuInfo do
  @moduledoc """
  CPU specifications for the device * This field provides device information, which is static and will not change over time. * Data for this field is controlled via policy: [ReportDeviceCpuInfo](https://chromeenterprise.google/policies/#ReportDeviceCpuInfo) * Data Collection Frequency: Only at Upload * Default Data Reporting Frequency: 3 hours - Policy Controlled: Yes * Cache: If the device is offline, the collected data is stored locally, and will be reported when the device is next online: No * Reported for affiliated users only: N/A * Granular permission needed: TELEMETRY_API_CPU_INFO

  ## Attributes

  *   `architecture` (*type:* `String.t`, *default:* `nil`) - Output only. Architecture type for the CPU. * This field provides device information, which is static and will not change over time. * Data for this field is controlled via policy: [ReportDeviceCpuInfo](https://chromeenterprise.google/policies/#ReportDeviceCpuInfo) * Data Collection Frequency: Only at Upload * Default Data Reporting Frequency: 3 hours - Policy Controlled: Yes * Cache: If the device is offline, the collected data is stored locally, and will be reported when the device is next online: No * Reported for affiliated users only: N/A
  *   `keylockerConfigured` (*type:* `boolean()`, *default:* `nil`) - Output only. Whether keylocker is configured.`TRUE` = Enabled; `FALSE` = disabled. Only reported if keylockerSupported = `TRUE`.
  *   `keylockerSupported` (*type:* `boolean()`, *default:* `nil`) - Output only. Whether keylocker is supported.
  *   `maxClockSpeed` (*type:* `integer()`, *default:* `nil`) - Output only. The max CPU clock speed in kHz.
  *   `model` (*type:* `String.t`, *default:* `nil`) - Output only. The CPU model name. Example: Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :architecture => String.t() | nil,
          :keylockerConfigured => boolean() | nil,
          :keylockerSupported => boolean() | nil,
          :maxClockSpeed => integer() | nil,
          :model => String.t() | nil
        }

  field(:architecture)
  field(:keylockerConfigured)
  field(:keylockerSupported)
  field(:maxClockSpeed)
  field(:model)
end

defimpl Poison.Decoder, for: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1CpuInfo do
  def decode(value, options) do
    GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1CpuInfo.decode(value, options)
  end
end

defimpl Poison.Encoder, for: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1CpuInfo do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
